package com.timetable;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.easylib.base.BaseActivity;

import butterknife.Bind;
import butterknife.OnClick;

public class MainActivity extends BaseActivity {

    @Bind(R.id.tv1)
    TextView tv1;
    @Bind(R.id.tv2)
    TextView tv2;
    @Bind(R.id.tv3)
    TextView tv3;
    @Bind(R.id.activity_main)
    LinearLayout activityMain;

    @Override
    public int getContentViewId() {
        return R.layout.activity_main;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {

    }

    @Override
    protected void initVariable() {

    }

    @Override
    protected void processLogic(Bundle savedInstanceState) {

    }

    Intent intent;
    @OnClick({R.id.tv1, R.id.tv2, R.id.tv3})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv1:
                intent=new Intent(mContext,TabelActivity.class);
                startActivity(intent);
                break;
            case R.id.tv2:
                intent=new Intent(mContext,MemorandumActivity.class);
                startActivity(intent);
                break;
            case R.id.tv3:
                intent=new Intent(mContext,TomatoActivity.class);
                startActivity(intent);
                break;
        }
    }
}
